package designPatterns.P11_代理模式_Proxy.P04_延迟加载or懒加载;

import designPatterns.P11_代理模式_Proxy.P03_cglib_runoob.TargetObject;
import net.sf.cglib.proxy.Dispatcher;

public class ConcreteClassDispatcher implements Dispatcher {
    @Override
    public Object loadObject() throws Exception {
        System.out.println("before Dispatcher...");
        PropertyBean pb = new PropertyBean();
        pb.setKey("key_ConcreteClassDispatcher");
        pb.setValue(new TargetObject());
        System.out.println("after Dispatcher...");
        return pb;
    }
}
